/* 改变主题色变量 */
$--color-primary: #0c6bba;

/* 改变 icon 字体路径变量，必需 */
$--font-path: '~element-ui/lib/theme-chalk/fonts';

@import "~element-ui/packages/theme-chalk/src/index";


.el-upload__input {
    display: none !important;
}

.el-table {
    border: 1px solid #eee;
    border-bottom:0;

    .el-table__row .cell {
      .el-progress .el-progress-bar .el-progress-bar__outer {
        background-color: darken($--table-current-row-background, 8%);
      }
    }
}

.modal .modal-dialog .modal-content {
  .el-table td, .el-table th {
    padding: 6px 0;
  }
}

/* fix IE11 垂直居中 */
.el-table__empty-block:after {
  content: '';
  min-height: inherit;
  font-size: 0;
}

.el-autocomplete .el-input__inner, .el-select .el-input__inner, .el-textarea .el-textarea__inner {
    border-radius: 0;
}

.el-tree-node > .el-tree-node__children {
    overflow: visible;
}

.el-tree__empty-text {
    color: #909399;
}

.el-tabs__item {
  color: $--color-primary;
  user-select: none;
}

.el-radio-button {
  user-select: none;
  box-shadow: none !important;
}

@media screen and (max-width: ($--message-min-width - 1)) {
    .el-message {
        min-width: 100% !important;
    }
}

@media screen and (max-width: ($--msgbox-width - 1)) {
    .el-message-box {
        width: 100% !important;
    }
}

/* Timeline */ /* currently not used in LiveNVR */
$--timeline-node-size-normal: 12px !default;
$--timeline-node-size-large: 14px !default;
$--timeline-node-color: $--border-color-light !default;

@include b(timeline) {
    margin: 0;
    font-size: $--font-size-base;
    list-style: none;

    & .el-timeline-item:last-child {
      & .el-timeline-item__tail {
        display: none;
      }
    }
}

/* Timeline Item */
@include b(timeline-item) {
    position: relative;
    padding-bottom: 20px;

    @include e(wrapper) {
      position: relative;
      padding-left: 28px;
      top: -3px;
    }

    @include e(tail) {
      position: absolute;
      left: 4px;
      height: 100%;
      border-left: 2px solid $--timeline-node-color;
    }

    @include e(icon) {
      color: $--color-white;
      font-size: $--font-size-small;
    }

    @include e(node) {
      position: absolute;
      background-color: $--timeline-node-color;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;

      @include m(normal) {
        left: -1px;
        width: $--timeline-node-size-normal;
        height: $--timeline-node-size-normal;
      }
      @include m(large) {
        left: -2px;
        width: $--timeline-node-size-large;
        height: $--timeline-node-size-large;
      }

      @include m(primary) {
        background-color: $--color-primary;
      }
      @include m(success) {
        background-color: $--color-success;
      }
      @include m(warning) {
        background-color: $--color-warning;
      }
      @include m(danger) {
        background-color: $--color-danger;
      }
      @include m(info) {
        background-color: $--color-info;
      }
    }

    @include e(dot) {
      position: absolute;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    @include e(content) {
      color: $--color-text-primary;
    }

    @include e(timestamp) {
      color: $--color-text-secondary;
      line-height: 1;
      font-size: $--font-size-small;

      @include when(top) {
        margin-bottom: 8px;
        padding-top: 4px;
      }
      @include when(bottom) {
        margin-top: 8px;
      }
    }
}